package car;

import java.util.Scanner;

/**
 * @Author admin
 * @Date 2019/3/20 8:11
 */
public class Test {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.println("请选择你要开哪辆车");
        System.out.println("1-----BMW\n2-----QQ");
        int choose = in.nextInt();
        CarFactory cf=new CarFactory();
        Car car = cf.getCar(choose);
        car.run();
    }
}
